﻿@model BrnMall.Web.StoreAdmin.Models.NewsTypeListModel

@section header{
<title>内容分类-内容管理</title>
<link type="text/css" rel="stylesheet" href="/admin_store/css/site.css" />
<script type="text/javascript" src="/admin_store/scripts/jquery.js"></script>
<script type="text/javascript" src="/admin_store/scripts/showlist.js"></script>
}

@section body{
<h1 class="rightH1">
    微信小程序 &gt; 内容管理 &gt; <span class="rightH1-cur">内容分类</span>
<div class="right">
<a href="@Url.Action("addnewstype")" class="menuBT"><img src="/admin_store/images/add.jpg"/>添加分类</a>
<div class="clear"></div>
</div>
<div class="clear"></div>
</h1>
        <div class="table_top">
        </div>
<div class="dataList">
<table width="100%">
<thead>
  <tr>
    <th width="20">ID</th>
      <th align="left" >名称</th>
      <th align="left">首页展示</th>
      <th align="left">显示类型</th>
    <th width="60" align="left" >排序</th>  
    <th width="90" align="left">管理操作</th>
    </tr>
</thead>
  <tbody>
  @foreach (NewsTypeInfo info in Model.NewsTypeList)
  {
  <tr>
    <td>@info.NewsTypeId</td>
      <td>@info.Name</td>
      <td>@if (info.IsHome)
          {
              @:是
          }
          else
          {
              @:否
          }
      </td>
      <td>@if (info.DisplayType == "pic_1")
          {
              @:单图
          }else if (info.DisplayType == "pic_3")
          {
              @:多图
          }
          else if(info.DisplayType == "list")
          {
              @:列表
          }
      else if (info.DisplayType == "swiperlist")
      {
        @:手动轮播
          }</td>
    <td>@info.DisplayOrder</td>
    <td>
        @if (info.StoreId != 0)
        {
			@Html.ActionLink("编辑", "editnewstype", new { newsTypeId = info.NewsTypeId }, new { @class = "editOperate" })
			<span class="btn-line">|</span>
            @Html.ActionLink("删除", "delnewstype", new {newsTypeId = info.NewsTypeId}, new {@class = "deleteOperate"})
        }
    </td>
    </tr>
  }
</tbody>
</table>
</div>
<div class="table_bottom"></div>
}